<?php

namespace frontend\models;

use Yii;

/**
 * This is the model class for table "fenhui".
 *
 * @property integer $id
 * @property integer $userid
 * @property string $grade
 * @property string $qiyemingcheng
 * @property string $farendaibiao
 * @property string $qiyedizhi
 * @property integer $youbian
 * @property string $farentel
 * @property string $farenmobile
 * @property string $farenfax
 * @property string $contact
 * @property string $tel
 * @property string $mobile
 * @property string $fax
 * @property string $qiyewangzhi
 * @property string $email
 * @property integer $qiyerenshu
 * @property string $shigongzizhi
 * @property string $certificatenumber
 * @property string $zhucezijin
 * @property string $konggugudong
 * @property string $qiyepinpai
 * @property integer $jingjileixing
 * @property integer $qiyexingzhi
 * @property string $product
 * @property string $qiyejianjie
 * @property integer $flag
 * @property integer $created_at
 * @property integer $updated_at
 */
class FenhuiForm extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public $verifyCode;
    public static function tableName()
    {
        return 'fenhui';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            ['verifyCode', 'captcha', 'message'=>'验证码错误','captchaAction'=>'/member/captcha'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'userid' => 'Userid',
            'grade' => 'Grade',
            'qiyemingcheng' => 'Qiyemingcheng',
            'farendaibiao' => 'Farendaibiao',
            'qiyedizhi' => 'Qiyedizhi',
            'youbian' => 'Youbian',
            'farentel' => 'Farentel',
            'farenmobile' => 'Farenmobile',
            'farenfax' => 'Farenfax',
            'contact' => 'Contact',
            'tel' => 'Tel',
            'mobile' => 'Mobile',
            'fax' => 'Fax',
            'qiyewangzhi' => 'Qiyewangzhi',
            'email' => 'Email',
            'qiyerenshu' => 'Qiyerenshu',
            'shigongzizhi' => 'Shigongzizhi',
            'certificatenumber' => 'Certificatenumber',
            'zhucezijin' => 'Zhucezijin',
            'konggugudong' => 'Konggugudong',
            'qiyepinpai' => 'Qiyepinpai',
            'jingjileixing' => 'Jingjileixing',
            'qiyexingzhi' => 'Qiyexingzhi',
            'product' => 'Product',
            'qiyejianjie' => 'Qiyejianjie',
            'flag' => 'Flag',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }
}
